package com.fcgzs.user.feign;

import com.fcgzs.entity.PageResult;
import com.fcgzs.entity.Result;
import com.fcgzs.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/****
 * @Author:ujiuye
 * @Description:
 * @Date 2021/2/1 14:19
 *****/
@FeignClient(value="USER")
public interface UserFeign {

    @GetMapping("/user/load/{username}")
    public Result<User> findByUsername(@PathVariable(name = "username") String username);

}